Skip to main content

templateStack

Type

keyword

Summary

Used with the set command to set the properties of newly created stacks.

Syntax

templateStack

Description

Use the templateStack keyword to set up default properties to be used for any new stacks you create.

The templateStack can be thought of as a special, abstract object. It is not an actual stack, but it has all the properties of a stack. The ID property of the templateStack is 1001.

You can use the set command to set the properties of the templateStack before creating a stack. The new stack has the properties of the templateStack, by default. Changing the properties of the templateStack does not affect existing stacks.

The properties of the templateStack can be returned to the default settings using the reset command.

You can refer to the templateStack using any of the following forms:

    templateStack
the templateStack
templateStack()
note

The templateStack keyword is implemented internally as a function and appears in the functionNames. However, it cannot be used as a function in an expression.

Examples

set the ID of the templateStack to 2000

control structure: function

function: stacks, functionNames

glossary: object, keyword, property, command, expression

keyword: templateScrollbar, default

object: stack

property: properties, ID

command: create stack, reset, set

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?